package com.cadre.common.utils.oldutil;

import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark;

import java.util.Map;

/* loaded from: AgeHandler.class */
public class AgeHandler implements CellHandler {
    @Override // com.tdqy.cadre.modular.profess.common.report.CellHandler
    public void setValue(XWPFParagraph paragraph, Map data) {
        XWPFRun run = paragraph.createRun();
        CTBookmark bookmark = paragraph.getCTP().getBookmarkStartArray(0);
        if (data.get(bookmark.getName()) != null) {
            run.setText(data.get(bookmark.getName()).toString(), -2);
        }
    }
}
